package com.aliyun.messagemgt.dto.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 短信统计概览 趋势查询结果类
 *
 * @author byp
 * @date 2020/8/5
 */
@ApiModel(value = "SmsTrendResultVO", description = "短信统计概览结果")
@Data
public class SmsTrendResultVO {

    @ApiModelProperty(value = "查询周期内成功总量", name = "successCount")
    private Integer successCount;

    @ApiModelProperty(value = "查询周期内失败总量", name = "failCount")
    private Integer failCount;

    @ApiModelProperty(value = "查询周期内成功率", name = "rate")
    private String rate;

    @ApiModelProperty(value = "查询周期数据", name = "smsTrends")
    private List<SmsTrend> smsTrends;

    @Data
    public static class SmsTrend {
        @ApiModelProperty(value = "日期", name = "dateTime")
        private String dateTime;

        @ApiModelProperty(value = "成功量", name = "success")
        private Integer success;

        @ApiModelProperty(value = "失败量", name = "fail")
        private Integer fail;
    }
}
